package org.noote.libs.robot.object3d.helper;

import org.noote.libs.sogle.Object3D_Group;
import org.noote.libs.sogle.helper.Mesh_Box;
import org.noote.libs.sogle.helper.Mesh_Circle;
import org.noote.libs.sogle.helper.Mesh_Cylinder;

public class Mesh_Servo extends Object3D_Group {

	public Mesh_Servo()
	{
		super();
		
		Mesh_Box box;
		Mesh_Cylinder cyl;
		Mesh_Circle cir;
		
		box = new Mesh_Box(2.0f, 3.6f, 4.0f, true);
		box.setPosition(0f, -0.9f, -1.1f);
		box.setColor(0.2f, 0.2f, 0.2f);
		add(box);
		
		box = new Mesh_Box(1.8f, 0.2f, 5.4f, true);
		box.setPosition(0f, 0.1f, -1.1f);
		box.setColor(0.2f, 0.2f, 0.2f);
		add(box);
		
        cyl = new Mesh_Cylinder(0.2f, 2.4f, 16);
        cyl.setPosition(0f, 1.7f, 0.0f);
        cyl.setColor(1, 1, 1);
        add(cyl);
        
        cir = new Mesh_Circle(2.4f, 16);
        cir.setPosition(0f, 1.8f, 0.0f);
        cir.setColor(1, 1, 1);
        add(cir);
        
        cir = new Mesh_Circle(2.4f, 16);
        cir.setPosition(0f, 1.6f, 0.0f);
        cir.setEulerRotation(180f, 0, 0.0f);
        cir.setColor(1, 1, 1);
        add(cir);
        
        cyl = new Mesh_Cylinder(0.3f, 0.9f, 12);
        cyl.setPosition(0f, 1.45f, 0.0f);
        cyl.setColor(1, 1, 1);
        add(cyl);
        
        cir = new Mesh_Circle(0.9f, 12);
        cir.setPosition(0f, 1.3f, 0.0f);
        cir.setEulerRotation(180f, 0, 0.0f);
        cir.setColor(1, 1, 1);
        add(cir);
	}
}
